<?php
	include "sql.php";
	$name = $passwd = "";
	if ($_SERVER["REQUEST_METHOD"] == "POST"){
	  $name = $_POST["name"];
	  $passwd = $_POST["passwd"];
	  header("Content-type: text/json");
	  echo userLogin($name,$passwd);
	  return;
	}
?>

<!DOCTYPE html>
<html>
<head>
	<title></title>
	<meta charset="utf-8">
</head>
<body>
<form action="login.php" method="post">
	name:<input type="text" name="name">
	passwd:<input type="text" name="passwd">
	<input type="submit" name="">
</form>
</body>
</html>